<?php
include("inc/conn.inc");
$crs=@mysql_query("select * from dh_type where id='$_GET[id]'");
$crow=@mysql_fetch_array($crs);

if($_GET[dj]==2){
$crs1=@mysql_query("select * from dh_type where id='$crow[type_id]'");
$crow1=@mysql_fetch_array($crs1);
}
if($_GET[dj]==3){
$crs2=@mysql_query("select * from dh_type where id='$crow[type_id]'");
$crow2=@mysql_fetch_array($crs2);

$crs1=@mysql_query("select * from dh_type where id='$crow2[type_id]'");
$crow1=@mysql_fetch_array($crs1);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<TITLE><?=$crow[type_name]?>-<?php if($_GET[dj]==3){echo "$crow2[type_name]，";}?><?=$crow1[type_name]?>，三帝导航网-您上网的好助手！</TITLE>
<META content="<?=$crow[type_name]?>，<?php if($_GET[dj]==3){echo "$crow2[type_name]，";}?><?=$crow1[type_name]?>，网址大全、网址导航、搜索、音乐、娱乐、图片、游戏、购物、团购、社区、小说、生活指南、商务助手、常用软件、国内网址。" name="Keywords">
<META content="<?=$crow[type_name]?>，<?php if($_GET[dj]==3){echo "$crow2[type_name]，";}?><?=$crow1[type_name]?>，三帝导航网汇聚各类网址、音乐、娱乐、图片、游戏、购物、社区、小说、生活指南、商务助手、常用软件等，各热门优秀网站，让您上网更便利，快捷。" name="description">
<link href="/css/style.css" type="text/css" rel="stylesheet" />
<link href="/css/link.css" type="text/css" rel="stylesheet" />
<link href="/css/catalog.css" type="text/css" rel="stylesheet" />
<script src="/js/time.js" type="text/javascript" charset="gb2312"></script>
</head>
<body>
<!--第一部分head-->
<?php include("top.php")?>

<div id="content">
  <div id="position">
     <a href="/" class="link8">三帝导航网</a> >> <a href="/dh/class-<?=$crow1[id]?>-1.html" class="link8"><?=$crow1[type_name]?></a> >><?php if($_GET[dj]==3){?> <a href="/dh/list-<?=$crow2[id]?>-2.html" class="link8"><?=$crow2[type_name]?></a> >><?php }?> <?=$crow[type_name]?>
  </div>

  <div id="left">
     <div id="left_z">
      <span style="float:right;font-size:12px;margin-right:50px;color:#FF6600; width:500px; text-align:left;">推荐网址：
    <?php
    $rs=@mysql_query("select * from dh_list where type_id$_GET[dj]='$crow[id]' and dh_sh=1 order by dh_tj desc,id asc limit 5");
	while($row=@mysql_fetch_array($rs)){?>
	<a href="<?=$row[web_url]?>" class="link12"><?=$row[web_name]?></a>
	<?php }?>
      </span><?=$crow[type_name]?>
     </div>

     <div id="left_x">
       <div id="left_y">
	     <?php if($_GET[dj]==2){?>
         <?php $rs=@mysql_query("select * from dh_type where type_id='$crow[id]'");
		 while($row=@mysql_fetch_array($rs)){?>
          <a href='/dh/list-<?=$row['id']?>-3.html' class="link13"><?=$row[type_name]?></a>
          <?php }?>
		  <?php }?>
       <div style="clear:both;"></div>
       </div>
       <div style="clear:both;"></div>
      <?php
	   $rs=@mysql_query("select * from dh_list where type_id$_GET[dj]='$crow[id]' and dh_sh=1 order by dh_tj desc,id asc");
	        while($row=@mysql_fetch_array($rs)){?>
      <a href='<?=$row[web_url]?>' target='_blank' class="link14"><?=$row[web_name]?></a>
	  <?php }?>
      <div style="clear:both;"></div>
     </div>
     <div style="clear:both;"></div>
  </div>

  <div id="right">
     <div id="right_z">热门网站排行</div>
     <div id="right_x">
        <ul>
		<?php
		$rs=@mysql_query("select * from dh_list where dh_sh=1 and dh_tj=1 order by id asc limit 20");
		while($row=@mysql_fetch_array($rs)){?>
		  <li><a href='<?=$row[web_url]?>' class="link8"><?=$row[web_name]?></a></li>
		<?php }?>
		</ul>
     </div>
  </div>
</div>
<div style="clear:both;"></div>
<!--第四部分bottom-->
<?php include("foot.php");?>
</body>
</html>

